import layoutHeaderAside from '@/layout/header-aside'

const meta = { auth: true }

export default {
    path: '/client',
    name: 'client',
    meta,
    redirect: { name: 'client-index' },
    component: layoutHeaderAside,
    children: (pre => [
        {
            path: 'index',
            name: `${pre}index`,
            component: () => import('@/pages/client/index'),
            meta: { ...meta, title: '客户端管理' }
        },{
            path: 'create',
            name: `${pre}create`,
            component: () => import('@/pages/client/create'),
            meta: { ...meta, title: '新建客户端' }
        }
    ])('client-')
}
